<?php
if(in_array($controller, array("listcustomersDebts"))){
    if($this->input->server('REQUEST_METHOD')=='POST' && $this->input->post('submit') == 'search'){
        $data = array(
            's_customerName'        =>  $this->input->post('customersName'),
            's_phone'               =>  $this->input->post('phone')
        );
        $this->session->set_userdata('s_listcustomersDebts', json_encode($data));
    }
}